Skip to main content

하샤드 수

Solution

function solution(x) {
return !(x % `${x}`.split("").reduce((acc, cur) => acc + Number(cur), 0));
}

Review

.

References